﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Classified.Domain.Entities
{
    public class ClassifiedCategory
    {
        [Key]
        [HiddenInput(DisplayValue = false)]
        public int Id { get; set; }
        [Display(Name = "Meata Descriptions ")]
        public string MetaDesc { get; set; }

        [Display(Name = "Meata Title ")]
        public string MetaTitle { get; set; }
        [Display(Name = "Meata KeyWord ")]
        public string MetaKeyWord { get; set; }
        [Required]
        [Display(Name = "Category Name")]
        public string Name { get; set; }
        public string Description { get; set; }
        [Display(Name = "Is Active")]
        [Required]
        public bool IsActive { get; set; }
        [Display(Name = "Parent Category")]
        public int ParentCategoryId { get; set; }

        public bool Deleted { get; set; }
        [Display(Name = "Display Order")]
        public int DisplayOrder { get; set; }

        public bool Published { get; set; }

        public bool ShowOnHomePage { get; set; }
        public bool IsPriceShown { get; set; }
        public DateTime CreatedOnUtc { get; set; }

        public DateTime? UpdatedOnUtc { get; set; }

        public virtual ICollection<ClassifiedAd> ClassifiedAds { get; set; }
        public virtual ICollection<ClassifiedCategoryAttribute> ClassifiedCategoryAttributes { get; set; }
    }
}